import {useRoutes} from 'react-router-dom'
import Dome from '../Dome'
import TodoList from '../王军/Hooks/context/TodoList'
const Routes=()=>{
  return useRoutes([
    {
      path:'/',
      element:<Dome/>
    },
    {
      path:'/TodoList',
      element:<TodoList/>
    }
  ])
}
export default Routes